<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

age:<div id="age"></div>

<script>
//可以直接解析json
    var test = {"age": 1};
    console.log(test);
    console.log(test.age)
</script>
</body>
</html>